package com.cn.tyj.rm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/7/2/002.
 */
@Controller
public class IndexController {

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index(){
        return "index_two";
    }

    @RequestMapping(value = "/gotoPage/{url}/{childurl}", method = RequestMethod.GET)
    public String gotoPage(@PathVariable String url,
                           @PathVariable String childurl){
        return url + "/" + childurl;
    }
}
